import React, { useEffect } from "react";
import { Outlet } from "react-router-dom";

const About: React.FC = () => {
  useEffect(() => {
    console.log("父组件About");
  }, []);

  return (
    <>
      <h3>About</h3>
      <hr />
      <h4>以下是子组件</h4>
      <Outlet />
    </>
  );
};
export default About;
